gtk4.git
10 years agocssstylechange: Add helper function to print change
Timm Bäder [Fri, 5 Feb 2016 09:28:13 +0000 (10:28 +0100)]
cssstylechange: Add helper function to print change

So I don't have to print both styles to the console, paste them both
into a file and then run diff on the 2 files anymore.

10 years agoiconhelper: Un-duplicate some code
Timm Bäder [Sat, 6 Feb 2016 08:27:00 +0000 (09:27 +0100)]
iconhelper: Un-duplicate some code

10 years agoRemove more unnecessary redraws
Timm Bäder [Fri, 5 Feb 2016 09:00:46 +0000 (10:00 +0100)]
Remove more unnecessary redraws

The call to gtk_widget_set_state_flags immediately before these already
queues a redraw/allocate/resize in case they have to be queued.

10 years agoAdwaita: No rounded corners for fullscreen
Matthias Clasen [Sun, 7 Feb 2016 17:00:29 +0000 (18:00 +0100)]
Adwaita: No rounded corners for fullscreen

If the theme has rounded corners for fullscreen, we don't tell the
window manager that we are now fully opaque, which then makes things
less efficient than they should be.

https://bugzilla.gnome.org//show_bug.cgi?id=761571

10 years agobox gadget: Fix allocation without baseline
Matthias Clasen [Sun, 7 Feb 2016 14:08:56 +0000 (15:08 +0100)]
box gadget: Fix allocation without baseline

When we don't get a baseline passed in, we want to basically
center the children inside the allocation. There was an attempt
in the code to do 'internal baseline alignment', but it had the
side effect of moving the contents to the top when we don't get
a baseline passed in. Remove it for now, this needs some more
infrastructure to do properly.

https://bugzilla.gnome.org/show_bug.cgi?id=761363

10 years agowidget-factory: Update levelbar example
Matthias Clasen [Sun, 7 Feb 2016 14:00:58 +0000 (15:00 +0100)]
widget-factory: Update levelbar example

Set reasonable level offsets.

10 years agoUpdated Spanish translation
Daniel Mustieles [Sun, 7 Feb 2016 12:18:58 +0000 (13:18 +0100)]
Updated Spanish translation

10 years agoUpdated Spanish translation
Daniel Mustieles [Sun, 7 Feb 2016 12:18:49 +0000 (13:18 +0100)]
Updated Spanish translation

10 years agoFix levelbar css node tests
Matthias Clasen [Sun, 7 Feb 2016 10:37:30 +0000 (11:37 +0100)]
Fix levelbar css node tests

These were affected by the recent change to level offset handling.
At the same time, make the test files more realistic by updating
the level offsets when we set a custom range.

10 years agolevel bar: Document buildable syntax
Matthias Clasen [Sun, 7 Feb 2016 10:28:08 +0000 (11:28 +0100)]
level bar: Document buildable syntax

10 years agoUpdated Polish translation
Piotr Drąg [Sat, 6 Feb 2016 18:32:03 +0000 (19:32 +0100)]
Updated Polish translation

10 years agolevel bar: Fix offset behavior
Matthias Clasen [Sat, 6 Feb 2016 15:42:25 +0000 (16:42 +0100)]
level bar: Fix offset behavior

We had some odd special-casing for the lowest and highest offset
that did not quite work. The new rule is simple: If the value
is between offset n-1 and n, it gets the style for offset n.

https://bugzilla.gnome.org/show_bug.cgi?id=761416

10 years agolevel bar: Improve documentation
Matthias Clasen [Sat, 6 Feb 2016 15:19:13 +0000 (16:19 +0100)]
level bar: Improve documentation

The docs were not explaining at all what happens to existing
level offsets when the min- or max-value of a level bar are
changed.

10 years agolevel bar: Make the full offset official
Matthias Clasen [Sat, 6 Feb 2016 15:11:17 +0000 (16:11 +0100)]
level bar: Make the full offset official

We are adding 3 offsets, not just two. Add a define for the
third one, and mention it in the docs.

10 years agoUpdated Slovak translation
Dušan Kazik [Sat, 6 Feb 2016 14:16:02 +0000 (14:16 +0000)]
Updated Slovak translation

10 years agowayland: rework buffer management code (3 changes)
Ray Strode [Sat, 6 Feb 2016 13:03:27 +0000 (08:03 -0500)]
wayland: rework buffer management code (3 changes)

There are a couple of issues with the way that buffers are handled in
wayland in right.  These issues mean that:

 - buffers can get leaked at a fairly fast clip under the right
   conditions. This leads to the OOM killer kicking in and
   gnome-shell and gnome-terminal (for instance) showing memory
   usage in the high gigabytes range.

 - drawing can happen to a shared memory buffer at the same time
   the compositor is reading out the pixels.  This can lead to
   glitching in drawing and other undefined behavior by the compositor.

This changeset reworks how buffer management is done in the code to try
to address both problems.

The first change (commit 2c300081) addresses the leak by dropping code
that has an unchecked cairo_surface_reference call.  The code is dropped
rather than fixed, because it has a more serious issue: it's overarching
purpose is to deal with shared memory buffer contention with the
compositor, but it does it in a racy way and so fails at that mission.

The second change (commit 40e91195a) moves what layer of the code buffer
release events are handled. This is an organizational change in the
code, with no functional changes, but it's important for the last change
in the changeset.

The last change (commit c80dd549) adds back code for dealing with shared
member buffer contention in a race free way. The new code is careful to
never reuse a buffer that hasn't been explicitly released by the
compositor.

10 years agowayland: stage uncommitted changes to dedicated buffer
Ray Strode [Fri, 29 Jan 2016 16:19:03 +0000 (11:19 -0500)]
wayland: stage uncommitted changes to dedicated buffer

Right now we use one buffer for both staged changes (freshly painted
changes waiting for the frame clock to send to the compositor) and
committed changes (changes actively being read by the compositor
process). This creates a problem in the event we need to stage updates
at the same time the compositor is processing committed updates: we
can't change what the compositor is actively processing.

The current solution for handling this contention is to allocate a
temporary buffer on the spot at the time the updates are staged, and to
copy that buffer back to the shared buffer later.  The problem, though,
is that the copy to the shared buffer currently happens as soon as
the updates are finished being staged, not when the shared buffer is
done being processed by the compositor.

In order to address that problem, this commit changes the code to always
stage changes to a dedicated staging buffer.  The staging buffer is
used exclusively by the client until the client is done with it, and then
once that staging buffer is committed, the client never writes to that
buffer again.  If the client needs to stage new updates, it allocates a
brand new staging buffer, draws to it, and back fills the undrawn parts
of the buffer from a copy of the contents of the committed buffer.

As an optimization, the compositor has the option of releasing the
committed buffer back to the client.  If it does so before the client
needs to stage new updates, then the client will reuse the buffer
for staging future updates.  This optimization prevents having to allocate
a new staging buffer and the associated cost of back filling
that new buffer with a readback of the committed buffer.

https://bugzilla.gnome.org/show_bug.cgi?id=761312

10 years agowayland: don't handle buffer release centrally
Ray Strode [Tue, 2 Feb 2016 19:36:25 +0000 (14:36 -0500)]
wayland: don't handle buffer release centrally

Right now we handle buffer releases coming from the
compositor in a central place. We add a listener when
first creating the shared buffers.

This is problematic because a buffer can only have
one listener on it at once so users of the buffer
can't get notified when it's released.

This commit moves the buffer listener code from the
centrally managed display code to the cursor and window
code.

https://bugzilla.gnome.org/show_bug.cgi?id=761312

10 years agowayland: always return FALSE from begin_paint
Ray Strode [Tue, 2 Feb 2016 17:20:22 +0000 (12:20 -0500)]
wayland: always return FALSE from begin_paint

The client and compositor share access to the window
pixel buffers. After the client hands off (commits)
the buffer to the compositor it's not supposed to write
to it again until it's released by the compositor.

The code tries to deal with this contention by allocating
a temporary buffer and using that in the mean time. This
temporary buffer is allocated by a higher layer of the code
when begin_paint returns TRUE. Unfortunately, that layer of
the code has no idea when the buffer is released, so it ends
up blitting the temporary buffer back to the shared buffer
prematurely.

This commit changes begin_paint to always return FALSE.

A future commit will address the contention problem in
a different way.

https://bugzilla.gnome.org/show_bug.cgi?id=761312

10 years agowayland: use g_clear_pointer when destroying cairo surfaces
Ray Strode [Wed, 3 Feb 2016 01:43:12 +0000 (20:43 -0500)]
wayland: use g_clear_pointer when destroying cairo surfaces

There are a few places where we destroy a cairo surface and
then nullify it. This commit changes those to use
g_clear_pointer instead.

It also drops a cairo_surface_finish call that is unnecessary

https://bugzilla.gnome.org/show_bug.cgi?id=761312

10 years agowayland: rename cairo surface user data key to be more specific
Ray Strode [Wed, 3 Feb 2016 15:12:23 +0000 (10:12 -0500)]
wayland: rename cairo surface user data key to be more specific

This commit renames the key name to be more specific for clarity.

https://bugzilla.gnome.org/show_bug.cgi?id=761312

10 years agowayland: move server proxy objects to substructure
Ray Strode [Tue, 2 Feb 2016 16:42:52 +0000 (11:42 -0500)]
wayland: move server proxy objects to substructure

This commit moves the server proxy objects to a substructure
for clarity.

https://bugzilla.gnome.org/show_bug.cgi?id=761312

10 years agowayland: rename window->surface to window->wl_surface
Ray Strode [Tue, 2 Feb 2016 16:27:54 +0000 (11:27 -0500)]
wayland: rename window->surface to window->wl_surface

The name surface is really overloaded when dealing
with wayland windows.

To alleviate ambiguity, this commit changes the name
of the "surface" and "subsurface" members to have
a wl_ prefix.

https://bugzilla.gnome.org/show_bug.cgi?id=761312

10 years agoFix stylecontext tests
Matthias Clasen [Sat, 6 Feb 2016 08:58:46 +0000 (09:58 +0100)]
Fix stylecontext tests

This was broken by f7ec9c98ef0ef8740c93f96af9d971b0211118c1,
since type names are no longer used at all in CSS matching.

10 years agoUpdate CSS docs regarding type names
Matthias Clasen [Sat, 6 Feb 2016 08:28:51 +0000 (09:28 +0100)]
Update CSS docs regarding type names

We no longer use type names at all.

10 years agocssselector: Remove type references
Benjamin Otte [Fri, 5 Feb 2016 22:47:48 +0000 (23:47 +0100)]
cssselector: Remove type references

We don't use types anymore.

10 years agocssmatcher: Remove type argument from name matcher
Benjamin Otte [Fri, 5 Feb 2016 22:43:05 +0000 (23:43 +0100)]
cssmatcher: Remove type argument from name matcher

We no longer use types when matching names.

10 years agoinspector: Drop type name from node list
Benjamin Otte [Fri, 5 Feb 2016 18:31:03 +0000 (19:31 +0100)]
inspector: Drop type name from node list

It's not used anymore in the CSS, so people don't need to see it.

10 years agocssimageradial: Only allow at "<position>" after other props
Benjamin Otte [Fri, 5 Feb 2016 18:01:48 +0000 (19:01 +0100)]
cssimageradial: Only allow at "<position>" after other props

Don't allow syntax like
  at top left circle
but follow the spec about requiring the at <position> right before the
comma.

This is porbably because
  circle at 10px 10px
could be interpreted as
  circle 10px at 10px
with the now disallowed syntax, too.

Test included.

10 years agocssimageradial: Only emit one error for wrong position
Benjamin Otte [Fri, 5 Feb 2016 17:30:28 +0000 (18:30 +0100)]
cssimageradial: Only emit one error for wrong position

Test included.

10 years agocss tests: Fix style tests
Matthias Clasen [Fri, 5 Feb 2016 14:54:50 +0000 (15:54 +0100)]
css tests: Fix style tests

Commit d0fd7990c3f2c738f86185418ccd76b14da8a776 changed
the location of builtin themes, breaking the loading of
the empty theme in test-css-style.

10 years agocss tests: Fix expected output
Matthias Clasen [Fri, 5 Feb 2016 14:50:35 +0000 (15:50 +0100)]
css tests: Fix expected output

This is fallout from f7ec9c98ef0ef8740c93f96af9d971b0211118c1.

10 years agocss: Convert numbers with GTK's dpi
Benjamin Otte [Fri, 5 Feb 2016 13:50:37 +0000 (14:50 +0100)]
css: Convert numbers with GTK's dpi

Don't hardcode 96 for dpi, but instead use the value of the -gtk-dpi
property (that mirrors the GdkScreen's dpi if it wasn't set explicitly).

This makes these values scale when the large font setting in
control-center is enabled.

10 years agocss: Properly convert em, ex and rem to pixels
Benjamin Otte [Fri, 5 Feb 2016 13:42:41 +0000 (14:42 +0100)]
css: Properly convert em, ex and rem to pixels

The previous code converted to pt.

10 years agoAdwaita: darker background for popovers
Lapo Calamandrei [Fri, 5 Feb 2016 13:10:36 +0000 (14:10 +0100)]
Adwaita: darker background for popovers

10 years agolevelbar: Make discrete levelbars behave as before
Matthias Clasen [Fri, 5 Feb 2016 10:53:50 +0000 (11:53 +0100)]
levelbar: Make discrete levelbars behave as before

During the gadget conversion, the drawing of discrete levelbars
was unintentionally changed to draw a wide trough but narrow
blocks, which does not look great. So go back to the previous
way of drawing things.

https://bugzilla.gnome.org/show_bug.cgi?id=761428

10 years agoFix indentation
Matthias Clasen [Fri, 5 Feb 2016 10:42:28 +0000 (11:42 +0100)]
Fix indentation

gcc 6 complains about this.

10 years agoDocument rem as CSS unit
Matthias Clasen [Fri, 5 Feb 2016 05:53:11 +0000 (06:53 +0100)]
Document rem as CSS unit

10 years agoswitch: Don't queue draws after setting state flags
Timm Bäder [Thu, 4 Feb 2016 18:03:37 +0000 (19:03 +0100)]
switch: Don't queue draws after setting state flags

10 years agocss: Add rem unit
Benjamin Otte [Thu, 4 Feb 2016 18:37:44 +0000 (19:37 +0100)]
css: Add rem unit

Good luck, Lapo.

10 years agowidget: Set a css name
Benjamin Otte [Thu, 4 Feb 2016 16:22:39 +0000 (17:22 +0100)]
widget: Set a css name

Now selecting a widget by class name no longer works.

This is probably most relevant for users outside of GTK that want to
style their own widgets. Those widgets should now either add their own
style classes (if they want to adjust existing CSS) or use
gtk_widget_class_set_css_name() themselves (if they want to get rid of
all "upstream" styling).

10 years agoRange: Group all three gestures
Timm Bäder [Mon, 1 Feb 2016 10:25:51 +0000 (11:25 +0100)]
Range: Group all three gestures

And reset the grab_location in the ::released handler of the multipress
gesture.

Previously, when leaving fine-tune mode, the ::released handler of the
multipress gesture would call stop_scrolling, which calls
range_grab_remove and resets the grab_location. The ::drag-end handler
is executed after that, and only unsets priv->in_drag if the
grab_location is MOUSE_OUTSIDE, which it never was, since the ::released
handler already reset it. This lead to priv->in_drag being set even
though no dragging was in progress anymore, which e.g. made shift
pressed after leaving the fine-tune mode entering it again.

https://bugzilla.gnome.org/show_bug.cgi?id=761402

10 years agox11: don't apply scaling factor twice
William Hua [Tue, 2 Feb 2016 20:33:33 +0000 (15:33 -0500)]
x11: don't apply scaling factor twice

The fallback behaviour of get_work_area () divides the
screen width and height by the window scaling factor, but
those values are already scaled down.

https://bugzilla.gnome.org/show_bug.cgi?id=761474

10 years agoDon't do remote checks on NULL files
Руслан Ижбулатов [Thu, 4 Feb 2016 11:23:12 +0000 (11:23 +0000)]
Don't do remote checks on NULL files

Calling _gtk_file_consider_as_remote() with a NULL argument
results in warnings being thrown.

Note that query->priv->location being NULL is a state that does
not seem to be invalid by itself.

This could happen if you do search-as-you-type in a filechooser,
which has a filter that does not match anything *and* the current
"place" selected is "Recent".

https://bugzilla.gnome.org/show_bug.cgi?id=761552

10 years agoMove private widget path functions away
Matthias Clasen [Thu, 4 Feb 2016 12:37:50 +0000 (13:37 +0100)]
Move private widget path functions away

We don't put private functions in public headers anymore.

https://bugzilla.gnome.org/show_bug.cgi?id=761339

10 years agowin32: Get rid of XP theme
Benjamin Otte [Thu, 4 Feb 2016 13:25:46 +0000 (14:25 +0100)]
win32: Get rid of XP theme

XP is not supported anymore. And we can massively simplify the win32
theme if we don't have to support 2 versions.

10 years agowin32: Delete classic theme
Benjamin Otte [Thu, 4 Feb 2016 13:23:08 +0000 (14:23 +0100)]
win32: Delete classic theme

Well, actually, stop adding an extra version of raleigh

10 years agobuild: Don't break windows build
Benjamin Otte [Thu, 4 Feb 2016 13:19:02 +0000 (14:19 +0100)]
build: Don't break windows build

Hardcode the existing files instead of doing a for loop and attempting
string-fudging magic.

10 years agoAdwaita: removed some old cruft from _drawing.scss
Lapo Calamandrei [Thu, 4 Feb 2016 13:13:42 +0000 (14:13 +0100)]
Adwaita: removed some old cruft from _drawing.scss

resulting in a nice number of non working selectors ditched.

10 years agoinspector: Don't hardcode builtin themes
Benjamin Otte [Thu, 4 Feb 2016 12:34:34 +0000 (13:34 +0100)]
inspector: Don't hardcode builtin themes

Insteead, enumerate the resources that are available. Fixes windows
themes not being listed in the inspector.

10 years agocssprovider: Change location of builtin themes
Benjamin Otte [Thu, 4 Feb 2016 12:28:21 +0000 (13:28 +0100)]
cssprovider: Change location of builtin themes

Instead of
  /org/gtk/libgtk/theme/$THEME-$VARIANT.css
look at
  /org/gtk/libgtk/theme/$THEME/gtk-$VARIANT.css
and that way mirror the directory layout of real themes.

10 years agoactionbar: Remove unnecessary map/unmap implementations
Timm Bäder [Wed, 3 Feb 2016 18:39:04 +0000 (19:39 +0100)]
actionbar: Remove unnecessary map/unmap implementations

These just do what the default implementations do anyway.

10 years agostatusbar: Remove unused include
Timm Bäder [Mon, 1 Feb 2016 14:25:42 +0000 (15:25 +0100)]
statusbar: Remove unused include

10 years agoRemove _gtk_box_get_children
Timm Bäder [Mon, 1 Feb 2016 14:25:10 +0000 (15:25 +0100)]
Remove _gtk_box_get_children

It's doing exactly the same thing as gtk_container_get_children.

10 years agocolorswatch: Remove unused constant
Timm Bäder [Mon, 1 Feb 2016 14:15:56 +0000 (15:15 +0100)]
colorswatch: Remove unused constant

10 years agoentry: queue an allocate when pulsing
Benjamin Otte [Thu, 4 Feb 2016 11:24:34 +0000 (12:24 +0100)]
entry: queue an allocate when pulsing

We need to reposition the progress gadget and that's done during
allocation.

10 years agogdkwindow-x11: always set _GTK_THEME_VARIANT property
Alberts Muktupāvels [Thu, 4 Feb 2016 09:52:07 +0000 (11:52 +0200)]
gdkwindow-x11: always set _GTK_THEME_VARIANT property

Set _GTK_THEME_VARIANT to empty string when default theme variant
is used. This will allow to understand whether _GTK_THEME_VARIANT
is not supported or default variant is requested.

https://bugzilla.gnome.org/show_bug.cgi?id=761476

10 years agogtksettings: fix critical warning
Alberts Muktupāvels [Wed, 3 Feb 2016 13:48:52 +0000 (15:48 +0200)]
gtksettings: fix critical warning

Commit 5186aeb90f52c941a2642b04ebfb54e9d8f8ea11 introduced critical
warning - g_value_copy: assertion 'g_value_type_compatible (...)' failed.

https://bugzilla.gnome.org/show_bug.cgi?id=761381

10 years agobroadway: Define variables where they are used
Benjamin Otte [Wed, 3 Feb 2016 22:07:05 +0000 (23:07 +0100)]
broadway: Define variables where they are used

Avoids gcc warnings about unused variables.

10 years agocomposetable: Fix gcc warnings
Benjamin Otte [Wed, 3 Feb 2016 22:06:53 +0000 (23:06 +0100)]
composetable: Fix gcc warnings

10 years agoimmodule: Use correct sign for function prototype
Benjamin Otte [Wed, 3 Feb 2016 21:50:03 +0000 (22:50 +0100)]
immodule: Use correct sign for function prototype

10 years agoentry: Turn progress node into a gadget
Benjamin Otte [Wed, 3 Feb 2016 19:44:06 +0000 (20:44 +0100)]
entry: Turn progress node into a gadget

10 years agoentry: Simplify drawing code
Benjamin Otte [Tue, 2 Feb 2016 14:44:28 +0000 (15:44 +0100)]
entry: Simplify drawing code

10 years agoAdwaita: fix headerbar spinbutton size
Lapo Calamandrei [Wed, 3 Feb 2016 17:32:51 +0000 (18:32 +0100)]
Adwaita: fix headerbar spinbutton size

fixes https://bugzilla.gnome.org/show_bug.cgi?id=761484

10 years agogdkborder: remove unneeded definition
William Hua [Wed, 3 Feb 2016 15:20:30 +0000 (10:20 -0500)]
gdkborder: remove unneeded definition

This reverts 54fa65f544bef281640d18a4a725005f6199a956,
5190d010d95010a845715c719c3b85a75e0c513a, and
a6e4de28842002e7bfdf73def26c4c52d9f9126a.

https://bugzilla.gnome.org/show_bug.cgi?id=756579

10 years agoprint dialog: Fix layout preview drawing
Matthias Clasen [Wed, 3 Feb 2016 15:06:05 +0000 (16:06 +0100)]
print dialog: Fix layout preview drawing

Use the CSS name paper for this as well, and make sure Adwaita
sets a color that makes the text visible in the dark theme as well.

10 years agoAdwaita: notebook with hidden header style fix
Lapo Calamandrei [Wed, 3 Feb 2016 14:23:17 +0000 (15:23 +0100)]
Adwaita: notebook with hidden header style fix

the stack styling is applied only when there is a header, hence
when the stack node is not the notebook only child, should cure
https://bugzilla.gnome.org/show_bug.cgi?id=760996

10 years agoAdwaita: fix vertical spinbutton style
Lapo Calamandrei [Wed, 3 Feb 2016 14:03:39 +0000 (15:03 +0100)]
Adwaita: fix vertical spinbutton style

correct sizing and workaround disabled entry text colors.

10 years agonotebook: Do not reorder tabs after a grab notify if there isn't an ongoing reorder...
Carlos Garcia Campos [Tue, 2 Feb 2016 17:50:58 +0000 (18:50 +0100)]
notebook: Do not reorder tabs after a grab notify if there isn't an ongoing reorder operation

This broke in f535251507a6a0af68aed6348ae80cbdac9b1f4a that removed
during_reorder in favor of using the current operation, but removed the
check from gtk_notebook_stop_reorder().

10 years agoUpdated French translation
Alexandre Franke [Tue, 2 Feb 2016 16:32:30 +0000 (16:32 +0000)]
Updated French translation
(cherry picked from commit 85fb4c1c0a17906a65e0b732770b88353b6214c4)

10 years agogtksettings: reset property to correct default value
Alberts Muktupāvels [Mon, 1 Feb 2016 20:38:28 +0000 (22:38 +0200)]
gtksettings: reset property to correct default value

https://bugzilla.gnome.org/show_bug.cgi?id=76138

10 years agoRevert "Add missing (out) annotation to gdk_rgba_parse"
Emmanuele Bassi [Tue, 2 Feb 2016 15:08:10 +0000 (15:08 +0000)]
Revert "Add missing (out) annotation to gdk_rgba_parse"

This reverts commit 695860958a9a2e7c825bcec4d0d42b427f0fb47e.

The change introduced an introspection ABI break.

See also: https://bugzilla.gnome.org/show_bug.cgi?id=682125

If we want to move the parse() method to be a constructor or a class
method, we'll need to do more testing or add new API.

https://bugzilla.gnome.org/show_bug.cgi?id=754990

10 years agoentry: Draw progress in the right place
Benjamin Otte [Mon, 1 Feb 2016 13:47:43 +0000 (14:47 +0100)]
entry: Draw progress in the right place

10 years agoUpdated Hungarian translation
Balázs Meskó [Tue, 2 Feb 2016 13:22:12 +0000 (13:22 +0000)]
Updated Hungarian translation

10 years agoUpdated German translation
Mario Blättermann [Mon, 1 Feb 2016 18:51:46 +0000 (19:51 +0100)]
Updated German translation

10 years agoreftests: Make separator-size test pass in HighContrastInverse
Matthias Clasen [Sun, 31 Jan 2016 21:53:53 +0000 (16:53 -0500)]
reftests: Make separator-size test pass in HighContrastInverse

After neutralizing the stack background, the notebook itself
was peeking through.

10 years agoUpdated Spanish translation
Daniel Mustieles [Sun, 31 Jan 2016 21:30:39 +0000 (22:30 +0100)]
Updated Spanish translation

10 years agoUpdated Spanish translation
Daniel Mustieles [Sun, 31 Jan 2016 21:30:29 +0000 (22:30 +0100)]
Updated Spanish translation

10 years agoTrivial formatting fix
Matthias Clasen [Sun, 31 Jan 2016 19:10:13 +0000 (14:10 -0500)]
Trivial formatting fix

10 years agoreftests: Make label-text-shadow-changes-modify-clip test more reliable
Matthias Clasen [Sun, 31 Jan 2016 19:08:35 +0000 (14:08 -0500)]
reftests: Make label-text-shadow-changes-modify-clip test more reliable

This test was failing in continuous, where the tests are running
in a VM with disabled animations. Make the test adapt to that
situation by changing the rui on the fly if we find that animations
are disabled.

10 years agoreftests: Add a message to the test output
Matthias Clasen [Sun, 31 Jan 2016 19:06:34 +0000 (14:06 -0500)]
reftests: Add a message to the test output

Emit a message that ends up in the test output if we are modifying
the test on the fly.

10 years agoreftests: Rename a source file
Matthias Clasen [Sun, 31 Jan 2016 19:00:08 +0000 (14:00 -0500)]
reftests: Rename a source file

Easier to keep track of things if the sources are names after
the test they are used in.

10 years agoentry: Fix icon areas
Timm Bäder [Sun, 31 Jan 2016 15:17:03 +0000 (16:17 +0100)]
entry: Fix icon areas

Do the same thing we already do in gtk_entry_get_text_area.

10 years agowidget: Annotate out params of _translate_coordinates as optional
Timm Bäder [Sat, 30 Jan 2016 23:01:31 +0000 (00:01 +0100)]
widget: Annotate out params of _translate_coordinates as optional

10 years agoreftests: Make animation-direction test more reliable
Matthias Clasen [Sun, 31 Jan 2016 18:51:54 +0000 (13:51 -0500)]
reftests: Make animation-direction test more reliable

This test was failing in continuous, where the tests are running
in a VM with disabled animations. Make the test adapt to that
situation by changing the reference ui on the fly if we find
that animations are disabled.

10 years agogtk-builder-tool: Expand the preview command
Matthias Clasen [Sun, 31 Jan 2016 17:57:50 +0000 (12:57 -0500)]
gtk-builder-tool: Expand the preview command

Make the preview command parse options properly, turn the ID into
an --id=ID option, and add a --css=FILE option that allows to
specify a css file to use for previewing.

This is useful for e.g. previewing the reftest .ui files with
their corresponding .css.

10 years agogtk-launch: Add --version
Matthias Clasen [Sun, 31 Jan 2016 17:05:35 +0000 (12:05 -0500)]
gtk-launch: Add --version

Support --version. Also improve the --help output cosmetically.

10 years agogtk-builder-tool: Accept --help
Matthias Clasen [Sun, 31 Jan 2016 16:01:46 +0000 (11:01 -0500)]
gtk-builder-tool: Accept --help

Saying 'Failed to open file '--help' is not polite or smart.
Catch this case and show usage information.

10 years agofile chooser: Avoid a crash
Matthias Clasen [Sun, 31 Jan 2016 04:07:56 +0000 (23:07 -0500)]
file chooser: Avoid a crash

Since 39c2d12330b6d4405ca8a5599c12017c58626fcf,
priv->operation_mode == OPERATION_MODE_BROWSE no longer
guarantees that priv->browse_files_model is the current
model of the list - we are only switching the models after
loading the new directory. Avoid triggering the assertion
in show_and_select_files by checking if we have right model
before calling it.

https://bugzilla.gnome.org/show_bug.cgi?id=761209

10 years agoDon't include the builtin sequence table in multiple places
Matthias Clasen [Sun, 31 Jan 2016 03:52:13 +0000 (22:52 -0500)]
Don't include the builtin sequence table in multiple places

The table is defined as static const guint16 [], so it really
should only be included in one source file.

10 years agocombobox: Avoid a misleading indentation
Matthias Clasen [Sun, 31 Jan 2016 03:50:54 +0000 (22:50 -0500)]
combobox: Avoid a misleading indentation

gcc 6 warns about this sort of thing. There were also some
stray ; here.

10 years agoFix the border-image-excess-size reftest
Matthias Clasen [Sun, 31 Jan 2016 02:50:00 +0000 (21:50 -0500)]
Fix the border-image-excess-size reftest

This was failing because the grid is now respecting border
width too. Making the selector more specific so it only
applies to the toolbars fixes this.

10 years agoFix another reftest
Matthias Clasen [Sun, 31 Jan 2016 02:43:49 +0000 (21:43 -0500)]
Fix another reftest

Make sure the notebook in the separator-size reftest does not
peek through, by giving it a transparent background.

10 years agoFix some reftests under wayland
Matthias Clasen [Sun, 31 Jan 2016 02:08:19 +0000 (21:08 -0500)]
Fix some reftests under wayland

Tests need to use popup windows, in order to avoid differences
due to CSD.

10 years agowayland: Reduce warning level for parentless temporaries
Matthias Clasen [Sun, 31 Jan 2016 01:56:17 +0000 (20:56 -0500)]
wayland: Reduce warning level for parentless temporaries

Temp windows without parent are used frequently in our testsuite;
using g_warning on them causes the tests to fail, which is not
useful. Reduce the warning to a g_message.

10 years agotreeview: Draw background when empty
Matthias Clasen [Sat, 30 Jan 2016 23:31:30 +0000 (18:31 -0500)]
treeview: Draw background when empty

We have a function we call for drawing the empty case, but
it only renders a focus rectangle. Make it draw the background
as well.

https://bugzilla.gnome.org/show_bug.cgi?id=761309

10 years agocolorchooserwidgeet: Reset the selected swatch when removing
Timm Bäder [Sat, 30 Jan 2016 21:31:27 +0000 (22:31 +0100)]
colorchooserwidgeet: Reset the selected swatch when removing

Otherwise, priv->current points to garbage and subsequently leads to a
crash, e.g. when adding another custom color.

10 years agoDocument gtk_parse_args limitations
Matthias Clasen [Sat, 30 Jan 2016 21:09:15 +0000 (16:09 -0500)]
Document gtk_parse_args limitations

Mention that some things won't work without a display
connection.

10 years agoThrow an error when a display is missing
Matthias Clasen [Sat, 30 Jan 2016 21:06:59 +0000 (16:06 -0500)]
Throw an error when a display is missing

Creating style context won't work without a display, so
give a clear error message and abort instead of segfaulting
later on.

https://bugzilla.gnome.org/show_bug.cgi?id=761332

10 years ago3.19.8
Matthias Clasen [Sat, 30 Jan 2016 18:27:30 +0000 (13:27 -0500)]
3.19.8